package com.poetize.plus.controller.ui;

import com.poetize.plus.entity.vo.LoveVO;
import com.poetize.plus.service.FamilyService;
import com.poetize.plus.utils.R;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.security.PermitAll;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author zuosy
 * @Date 2024/5/13 20:35
 **/
@Tag(name = "爱情小屋")
@RestController
@RequestMapping("/family")
@RequiredArgsConstructor
public class FamilyUiController {

    private final FamilyService familyService;

    @PermitAll
    @GetMapping
    @Operation(summary = "详情")
    public R<LoveVO> info(){
        return R.ok(familyService.loveInfo());
    }
}
